package com.mzx.pojo;

public class Proxy implements Rent{
    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }
    public void rent(){
        seeHouse();
        contrast();
        fee();
        host.rent();
    }
    //看房
    public void seeHouse(){
        System.out.println("中介带你看房子！" );
    }
    //合同
    public void contrast(){
        System.out.println("中介和你签合同！");
    }
    //收房租
    public void fee(){
        System.out.println("收房租！");
    }
}
